GUI Help > Special > getScrollbarPosition

getScrollbarPosition
int position=getScrollbarPosition(handle gadget)

Description:
Returns the position of the scrollbar's thumb, a value which lies between the range set using setScrollbarRange. Use this to determine which part of the document / 3D scene etc. on screen should be visible and which should not be visible.

Return Value:
Position of the scrollbar's thumb.

Parameters:
gadget Handle to a scrollbar gadget
Remarks:


See Also:


Example:
(Note: You will need to include the GUI constants file for this example to work)